home *** CD-ROM | disk | FTP | other *** search
- CHMOD
- Command
-
- ----------------------------------------------------------------
- Purpose: Displays or modifies the attributes of the specified
- file.
-
- Format: CHMOD [d:][path] filename[.ext] [/n][/r][/h][/s]
-
- Type: Internal External
- ***
-
- Remarks: The specified file's attributes are modified according
- to the specified options:
-
- /N Normal
- /R Read-only
- /H Hidden
- /S System
-
- Multiple options may be specified. /N will cancel any
- options preceding it on the command line.
-
- If no options are specified, a report of the file's
- current attributes is sent to the standard output.
-
- Upon exit, CHMOD sets ERRORLEVEL according to the
- file's current (updated) attributes, and/or the success
- of the operation:
-
- Normal file ==> 0
- Read-only file ==> 1
- Hidden file ==> 2
- System file ==> 4
- Failed operation ==> 8
-
- The only documented way to generate the "failed
- operation" error is to specify a non-existant file.
-
- CHMOD requires DOS 2.0, and will abort under earlier
- versions.
-
- Author: David Whitman
- 136 Wellington Terrace
- Lansdale, PA 19446